//
//  FindModel.m
//  UGoods
//
//  Created by dllo on 16/1/15.
//  Copyright © 2016年 蓝鸥科技.李贺. All rights reserved.
//

#import "FindModel.h"

@implementation FindModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
    if ([key isEqualToString:@"buyer"]) {
        self.name = value[@"name"];
        self.avatar = value[@"avatar"];
    }
    if ([key isEqualToString:@"shop_price"]) {
        self.shop_price = [value stringValue];
    }
    if ([key isEqualToString:@"buyerInfo"]) {
        self.img = value[@"img"];
        self.uname = value[@"uname"];
        self.brief = value[@"brief"];
    }
    if ([key isEqualToString:@"description"]) {
        self.descript = value;
    }
    if ([key isEqualToString:@"id"]) {
        self.myID = value;
    }
    if ([key isEqualToString:@"list_pic"]) {
        self.list_url = value;
    }
    if ([key isEqualToString:@"promote_price"]) {
        self.shop_price = [value stringValue];
    }
    if ([key isEqualToString:@"goods_id"]) {
        self.goods_id = [value stringValue];
    }
    if ([key isEqualToString:@"brand"]) {
        self.brand_name = value[@"brand_name"];
    }
    if ([key isEqualToString:@"img_url"]) {
        self.list_url = value;
    }
    if ([key isEqualToString:@"descrdiscountiption"]) {
        self.shop_price = value;
    }
   
}

@end
